using System.Globalization;
using Newtonsoft.Json;

namespace Crux.Core.LangChain.Databases.Sqlite;
/// <summary>
/// 
/// </summary>
public class SqliteRagConstants
{

    /// <summary>
    /// 默认序列化setting
    /// </summary>
    /// <value></value>
    internal static JsonSerializerSettings SerializerSettings = new JsonSerializerSettings
    {
        Error = (sender, e) => e.ErrorContext.Handled = true,
        MaxDepth = 128,
        Culture = CultureInfo.InvariantCulture,
        ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
        NullValueHandling = NullValueHandling.Ignore,
        MissingMemberHandling = MissingMemberHandling.Ignore,
    };
}